<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/_fragments::head(~{::title})">
    <meta charset="UTF-8">
    <title>标签新增页</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/me.css">
</head>
<body>

<!--导航-->
<nav th:replace="admin/_fragments::menu(3)" class="ui inverted semantic segment">
    <div class="ui container">
        <div class="ui inverted secondary menu">
            <h3 class="ui teal inverted header item">管理后台</h3>
            <a href="#" class="item">
                <i class="home icon"></i>
                博客
            </a>
            <a href="#" class="item">
                <i class="lightbulb icon"></i>
                分类
            </a>
            <a href="#" class="item">
                <i class="tags icon"></i>
                标签
            </a>
            <div class="right menu">
                <div class="ui dropdown item">
                    <div class="text">
                        <img src="https://picsum.photos/100/100" alt="" class="ui avatar image">
                        罗小宝
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="" class="item">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</nav>

<!--中间部分-->
<div class="m-container m-padded-tb-large">
    <div class="ui container">
        <form id="sub-form" class="ui fluid segment" method="post" th:action="@{/admin/tags/add}">
            <input type="hidden" th:name="id" th:value="${tag.id}">
            <div class="ui form">
                <div class="ui field">
                    <div class="ui left labeled input">
                        <label class="ui teal basic label">名称</label>
                        <input type="text" name="name" placeholder="标签名称" th:placeholder="${tag.name}">
                    </div>
                </div>
                <div class="ui right aligned container">
                    <button class="ui button" onclick="window.history.go(-1);">返回</button>
                    <button id="submit-btn" class="ui secondary submit button">提交</button>
                </div>

            </div>
        </form>
    </div>
</div>

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<!--底部-->
<footer th:replace="_fragments::footer" class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided grid">
            <div class="three wide column">
                <div class="inverted link list">
                    <img src="../static/img/wechat.jpg" alt="" class="ui rounded image">
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="" class="item">用户故事(Story)</a>
                    <a href="" class="item">用户故事(Story)</a>
                    <a href="" class="item">用户故事(Story)</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">联系我</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">1944303766@qq.com</a>
                </div>
                <div class="ui inverted link list">
                    <a href="#" class="item">QQ:1944303766</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header">Blog</h4>
                <p>这是我的个人博客、会分享关于编程、写作、思考相关的任何内容，希望可以给来到这儿的人有所帮助...</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p>Copyright© 2020-2021</p>

    </div>
</footer>


</body>
<!--/*/<th:block th:replace="admin/_fragments::script">/*/-->
<script src="../../static/js/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.js"></script>
<!--/*/</th:block>/*/-->
<script>
    $('.ui.dropdown')
        .dropdown()
    ;

    $("#submit-btn").click(function () {
        $("#sub-form").submit();
    });
</script>
</html>